package com.tiancheng.trade.payment.service;

import com.tiancheng.trade.payment.bo.SettleDistErrorBO;
import com.tiancheng.trade.payment.model.SettleDistError;

import java.util.List;

/**
 * 清分分账异常重新处理表
 * @author likailun
 * @date 2022-12-02 17:04
 */
public interface SettleDistErrorService {
    /**
     * 批量插入
     *
     * @param details
     */
    void saveBatch(List<SettleDistError> details);

    /**
     * 根据id、apprFileName、apprId、distFileName、distId组合条件批量更新
     *
     * @param settleDistErrors
     * @return
     */
    void updateBatch(List<SettleDistError> settleDistErrors);

    /**
     * 查询需要重新抽佣的清分记录
     * 条件：源记录分账成功&抽佣失败，且未再次抽佣成功
     * @return
     */
    List<SettleDistErrorBO> queryDateSettle();

    List<SettleDistError> queryByBatchDistIds(List<String> distIds);

}
